package com.hyzx.qbasic.admin.model.vo.req.admin;

import com.hyzx.qbasic.admin.model.vo.req.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * 新增请求类
 *
 * @author 黄江华
 * @since 2019-03-19
 */

@ApiModel
public class AddSysJobReq extends BaseRequest {
    @ApiModelProperty("bean名称")
    @NotEmpty(message = "bean名称不能为空")
    @Length(max = 255, message = "bean名称不能超过255个字符")
    private String beanName;

    @ApiModelProperty("方法名称")
    @NotEmpty(message = "方法名称不能为空")
    @Length(max = 255, message = "方法名称不能超过255个字符")
    private String methodName;

    @ApiModelProperty("方法参数")
    private String methodParams;

    @ApiModelProperty("cron表达式")
    @NotEmpty(message = "cron表达式不能为空")
    @Length(max = 255, message = "cron表达式不能超过255个字符")
    private String cronExpression;

    @ApiModelProperty("状态（1正常 0暂停）")
    @NotNull(message = "状态不能为空")
    private Integer jobStatus;

    @ApiModelProperty("备注")
    private String remark;

    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getMethodParams() {
        return methodParams;
    }

    public void setMethodParams(String methodParams) {
        this.methodParams = methodParams;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public Integer getJobStatus() {
        return jobStatus;
    }

    public void setJobStatus(Integer jobStatus) {
        this.jobStatus = jobStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}
